FROM debian:13.2-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ENV TZ=Asia/Shanghai
COPY frp_0.65.0_linux_amd64 /frp/0.65.0/
#CMD ["/frp/0.65.0/frps","-c","/frp/0.65.0/frps.toml"]
CMD ["/frp/0.65.0/frpc","-c","/frp/0.65.0/frpc.toml"]




# export SERVER_PORT="7000"
# export AUTH_TOKEN="xiaoyilin"
# export WEB_PORT="7500"
# export WEB_USER="xiaoyilin"
# export WEB_PASSWORD="xiaoyilin"
# export LOG_LEVEL="info"

# 日志级别默认info
# 可选值trace/debug/info/warn/error

# 验证配置文件
# /frp/0.65.0/frps -c /frp/0.65.0/frps.toml
#  frps verify -c frps.toml
# /frp/0.65.0/frps verify -c /frp/0.65.0/frps.toml
# 构建服务器
# docker build -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/frps:0.65.0 .
# docker run -d -p 7000:7000 -p 7500:7500 -e SERVER_PORT=7000 -e AUTH_TOKEN=xiaoyilin -e WEB_PORT=7500 -e WEB_USER=xiaoyilin  -e WEB_PASSWORD=xiaoyilin -e LOG_LEVEL=info --name frps registry.cn-hangzhou.aliyuncs.com/xiaoyilin/frps:0.65.0
# 服务端 Dashboard
# http://[server addr]:7500
# 构建客户端
# docker build -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/frpc:0.65.0 .
# docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' frps
# docker run -d -p 80:80 -e SERVER_ADDRESS=172.17.0.2 -e SERVER_PORT=7000 -e AUTH_TOKEN=xiaoyilin -e WEB_PORT=7500 -e WEB_USER=xiaoyilin  -e WEB_PASSWORD=xiaoyilin -e LOCAL_PORT=80 -e REMOTE_PORT=80 -e LOG_LEVEL=info --name frpc registry.cn-hangzhou.aliyuncs.com/xiaoyilin/frpc:0.65.0
# https://gofrp.org/zh-cn/docs/
# https://gofrp.org/zh-cn/docs/reference/